#ifndef IDCARDREAD_H
#define IDCARDREAD_H

#include <QThread>
#include <QMap>

typedef QMap<QString, QString> IdCData;

class IDCardRead : public QThread
{
    Q_OBJECT

public:
    IDCardRead(QObject *cr = 0);

signals:
    void send(IdCData d);

private:
    void run();
    bool open();
    bool read(IdCData &data);
    QString gb2u(char *gb);

private:
    bool isrun;
    int port;
};

#endif // IDCARDREAD_H
